﻿
@{
    ViewData["Title"] = "updatefileno";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section Head{
<link href="~/layuiadmin/style/style.css" rel="stylesheet" />
    <style>
        .dSearch {
            margin-bottom: 10px;
        }

        .layui-form-select {
            width: 100px;
            display: inline-block;
        }

        .layui-form input {
            height: 30px;
            font-size: 12px;
            color: #555;
            display: inline-block;
        }

        .layui-anim-upbit dd {
            font-size: 12px;
        }

        .dSearch .layui-btn {
            margin-top: -3px;
        }

        .layui-textarea {
            /*resize: both;*/
            transition: 0;
            -webkit-transition: all 0s;
            font-size: 12px;
            color: #555;
            height: 549px;
            /*width:830px;*/
        }

        .layui-textarea:focus {
            border-color: #1ab394 !important;
        }
    </style>
}

    <div id="dMain" style="padding:10px;">
        <div class="layui-row">
            <div class="layui-card">
                <div class="layui-card-header">档号更新</div>
                <div class="layui-card-body">
                    <div class="dSearch">
                        <div class="layui-form">
                            <select name="filetype" lay-filter="filetype">
                                <option value="0">诉讼</option>
                                <option value="1">文书</option>
                            </select>

                            <input type="text" class="layui-input" id="starYear" placeholder="开始年度" style="width:85px;">
                            <label style="font-size: 13px;color: #555;">至</label>
                            <input type="text" class="layui-input" id="endYear" placeholder="结束年度" style="width:85px;">

                            <input type="text" name="title" lay-verify="title" autocomplete="off" value="[全宗号]-[目录号]-[案卷号]" placeholder="档号格式" class="layui-input" style="width: 350px;height: 30px;font-size: 12px;color: #555;" />

                            <a class="layui-btn layui-btn-sm" id="lbtnGo">新档号预览</a>
                            <a class="layui-btn layui-btn-sm" id="lbtnUpdate" style="margin-left: 0;">开始更新</a>
                        </div>
                    </div>
                    <textarea class="layui-textarea" name="txtMsg" id="txtMsg" rows="2" cols="20"></textarea>
                </div>
            </div>
        </div>
    </div>

<script>
    window.onload = function () {
        layui.use('form', function () {
            var form = layui.form;
        })

        layui.use('laydate', function () {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#starYear', //指定元素
                value: '1959',
                type: 'year',
                theme: 'molv'
            });

            laydate.render({
                elem: '#endYear', //指定元素
                value: '2020',
                type: 'year',
                theme: 'molv'
            });
        });
    }
</script>